import Mock from "mockjs"

Mock.mock("/api/list",(()=>{
    return Mock.mock({
        "renderList|5":[
            {
                'serial|+1':"1",
                id:"text @increment(1)",
                name: "@cname",
                tel:"@integer(1000000000,9999999999)",
                "age|10-99":11,
                'number|10-20':12,
                'money|100-300':200,
                handle:"详情"
            }
        ]
    })
}))


Mock.mock("/api/lis",(()=>{
    return Mock.mock({
        "tableData|5":[
            {
                'serial|+1':"1",
                'date':'2021-1-1',
                name: "@cname",
                "age|10-30":10,
                'money|100-300':200,
                "illness":"胃病",
                ming:"@cname",
                job:"@ctitle(4)",
                tel:"@integer(1000000000,9999999999)",
                hospital:"@ctitle(2)医院",
                handle:"详情"
            }
        ]
    })
}))

